package xyz.luhui1hao.sell.exception;

import xyz.luhui1hao.sell.enums.ResultEnum;

/**
 * @ClassName SellException
 * @Description TODO
 * @Author luhui1hao
 * @Date 2018/8/22 上午11:21
 * @Version 1.0
 */
public class SellException extends RuntimeException {
    private Integer code;

    public SellException(ResultEnum resultEnum){
        super(resultEnum.getMsg());

        this.code = resultEnum.getCode();
    }

    public SellException(Integer code, String msg){
        this.code = code;
    }

}
